<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>Insert title here</title>
<%@include file="/commons/commonList.jsp" %>
<script type="text/javascript" defer>
	function init(){
		resize();
	}
	function setSchemeName(schemeName){
		document.getElementsByName("schemeName")[0].value = schemeName;
	}
	function resize(){
		parent.window.document.all('paySchemeFrame').style.height=document.body.scrollHeight;
	}
	/**
	*  去掉选中状态
	*/
	function clearSelectStatus(){
		var tableObj = document.getElementById("ec_table");
		var rowObjs = tableObj.rows;
		for(var i = 0; i < rowObjs.length; i++){
			rowObjs[i].className = "grid";
		}
	}

	function showDetail(id){
		var url = "${ctx}/charge_preparePaySchemeAction.do?method=initDetail&prePaySchId=" + id;
		top.windowOpen(url, "preparePaySchemeDetail", "${key.charege_scheme_detail}", 350, 420,true,"PreparePaySchemeAddFrame");
	}
</script>
</head>
<body onload="init();">
	<ec:ceTable items="prePaySchs"
				autoIncludeParameters="true"
				var="prePaySchItem"
				action="${ctx}/charge_preparePaySchemeAction.do?method=list"
				rowsDisplayed="15"
				width="100%"
				view="pmsview"
				styleClass="gridData"
			>
		<ec:ceRow styleClass="grid"
				  onclick="parent.currentId=${prePaySchItem.prePaySchId};"
				  ondblclick="showDetail('${prePaySchItem.prePaySchId}');"
				  onContextMenu="return ShowContextMenu(event,'quick_rightmenu');">
			<ec:ceColumn property="schemeName" headerCell="pmsHeadrCell" width="15%" title="${key.charege_scheme_name}" sortable="true"></ec:ceColumn>
			<ec:ceColumn property="isDefault" headerCell="pmsHeadrCell"   width="32%" title="${key.charege_scheme_default}">
				<c:if test="${prePaySchItem.isDefault eq '1'}">${key.charege_scheme_default_true}</c:if>
				<c:if test="${prePaySchItem.isDefault eq '0'}">${key.charege_scheme_default_false}</c:if>
			</ec:ceColumn>
			<ec:ceColumn property="remark" headerCell="pmsHeadrCell"   width="37%" title="${key.charege_scheme_remark}" showTitle="true"></ec:ceColumn>
		</ec:ceRow>
		<ec:parameter name="schemeName"></ec:parameter>
	</ec:ceTable>
<div id="quick_rightmenu" style="display:none;" oncontextmenu="return false" class="quick_rightmenu2">
  <table width="100%" border="0" cellpadding="1" cellspacing="0" class="grid_quickMenu_bg">
    <tr>
      <td><table width="100%" border="0" cellpadding="2" cellspacing="0">
        <tr>
          <td class="toolbarico">
            </td>
        </tr>
        <pms:AuthTag authName="charge_preparePaySchemeAction.do?method=initAdd">
		 <tr><td class="quickMenu_toolbarico"><a href="#" onClick="parent.openAdd();" onFocus="this.blur()"><img src="${ctx}/images/ico_newfile.gif" alt="" width="16" height="16" border="0" align="absbottom">&nbsp;&nbsp;${key.add}</a></td></tr>
          </pms:AuthTag>
          <pms:AuthTag authName="charge_preparePaySchemeAction.do?method=initEdit">
		  <tr><td class="quickMenu_toolbarico"><a href="#" onClick="parent.openEdit();" onFocus="this.blur()"><img src="${ctx}/images/ico_amend.gif" alt="" width="16" height="16" border="0" align="absbottom">&nbsp;&nbsp;${key.modify}</a></td> </tr>
      </pms:AuthTag>
       <pms:AuthTag authName="charge_preparePaySchemeAction.do?method=delete">
        <tr>
          <td class="quickMenu_toolbarico"><a href="#" onClick="parent.openDelete();" onFocus="this.blur()"><img src="${ctx}/images/ico_delete.gif" alt="" width="16" height="16" border="0" align="absbottom"> ${key.delete}</a></td>
          </tr>
          </pms:AuthTag>

      </table></td>
    </tr>
  </table>
</div>
</body>
</html>